package com.a918.dao;

import com.a918.entity.Role2permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Role2permissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role2permission record);

    int insertSelective(Role2permission record);

    Role2permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role2permission record);

    int updateByPrimaryKey(Role2permission record);

    void deleteByRoleId(Integer roleid);

    List<Integer> getPermissionIdByRoleId(Integer roleid);

    void delByRoleidAndPerid(@Param(value = "roleid")Integer roleid, @Param(value = "perid")Integer perid);

}